import axios from 'axios'
import Cookie from 'js-cookie'
const instance = axios.create({
  // baseURL: 'http://localhost:7001',
  timeout: 5000,
})

instance.interceptors.request.use((config) => {
  return config
})

instance.interceptors.response.use(
  (response) => {
    return response.data
  },
  (err) => {
    return Promise.reject(err)
  }
)

export default instance
